package com.bdqn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.pojo.Role;

/**
 * 角色Mapper接口，继承MyBaits-Plus的BaseMapper就拥有了强大增删改查等能力
 *
 * @author LILIBO
 * @since 2024/9/5
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户ID获得权限信息
     *
     * @param userId
     * @return
     */
    Role getByUserId(Long userId);

}




